package com.dianqiu.common.bean;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * DqClubPlayersId entity. @author MyEclipse Persistence Tools
 */
@Embeddable
public class DqClubPlayersIdTO implements java.io.Serializable {

	private Integer clbId;
	private Integer plyrId;

	@Column(name = "CLB_ID", nullable = false)
	public Integer getClbId() {
		return this.clbId;
	}

	public void setClbId(Integer clbId) {
		this.clbId = clbId;
	}

	@Column(name = "PLYR_ID", nullable = false)
	public Integer getPlyrId() {
		return this.plyrId;
	}

	public void setPlyrId(Integer plyrId) {
		this.plyrId = plyrId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof DqClubPlayersIdTO))
			return false;
		DqClubPlayersIdTO castOther = (DqClubPlayersIdTO) other;

		return ((this.getClbId() == castOther.getClbId()) || (this.getClbId() != null
				&& castOther.getClbId() != null && this.getClbId().equals(
				castOther.getClbId())))
				&& ((this.getPlyrId() == castOther.getPlyrId()) || (this
						.getPlyrId() != null
						&& castOther.getPlyrId() != null && this.getPlyrId()
						.equals(castOther.getPlyrId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getClbId() == null ? 0 : this.getClbId().hashCode());
		result = 37 * result
				+ (getPlyrId() == null ? 0 : this.getPlyrId().hashCode());
		return result;
	}

}